<?php
namespace Common\Service;


/**
 * service基类
 * Class BaseService.class
 * @package Miniproapi\Service
 */
class BaseService
{
    static protected $Instance=array();
    /**
     * @return $this
     */
    static public function S(){
        $class=get_called_class();
        if(!isset(self::$Instance[$class]))
            self::$Instance[$class]=new $class;
        return self::$Instance[$class];
    }


}